package com.hy.service.impl;

import com.hy.mapper.DistrictMapper;
import com.hy.pojo.District;
import com.hy.service.DistrictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DistrictServiceImpl implements DistrictService {
    @Autowired
    DistrictMapper districtDao;

    @Override
    public List< District > findDistrict( Integer cityId ) {
        List<District> list = districtDao.findDistrict(  cityId );
        return list;
    }
}
